--- Engine Blow-Out v1.0 (10/18/12) by ArpyClarkson ---

============
Authors Note
============
This script adds a touch of realism to GTA, making your bad driving a bad idea. Engine Blow-Out adds the downfall of your car when you push it too fast and too hard. This mod is fully customizable- allowing you to choose how much abuse your cars can take. Other than that, this script is really just a modified version of 'Destroy Engine V2' by Nevitro. His script didn't quite.. go the extra mile.

This is my first and probably only script, so don't expect much in the lines of additions, fixes, edits, and tweaks. I made this for my personal use, and released it for the sake of being thoughtful.

Hope you enjoy~

============
Installation
============
Place 'EBO.cs' into your 'scripts' folder- if you don't know if its working or not, check your 'ScriptHookDotNet.log'.

This script was only tested for GTAIV 1.0.7.0, I have no idea if it will work with any other version.

=============
Customization
=============
To edit this script you are going to need to be able to open the EBO.cs file- to do that you will need Microsoft Visual C#, or Visual Studio, or whatever- google it.

Once opened, you should see "Customization Variables" and "End Customization Variables"- you will be editing the stuff inside that section, nothing else.

------------
Grace Period
------------
The grace period is the amount of time you can be in the 'Red Zone' before your engine will start taking damage. PLEASE NOTE: This value is not in seconds, or milliseconds, or any standard time format. You're just going to have to play around until you get the way you want it.

float gracePeriod = XXX.Xf;

When editing, !!! ONLY REPLACE THE MARKED Xs !!! Adding or removing anything else may break the script. !!! YOU MUST HAVE THE 'f' ON THE END, EXACTLY AS SHOWN !!!

Some default values:
25.0
30.0
35.0
40.0
45.0
50.0

Some tips:
- values under 25.0 are under 3 seconds
- values over 100.0 - 1000.0 may take a very long time to test (I'm not sure how long)

--------------------------
Cooldown/Overheat Modifier
--------------------------
The cooldown modifier is at what RPM engine cooling stops and overheating resumes- just with some math involved. The overheat Modifier is simply at what RPM the engine begins overheating and taking damage. The two relate to each other, so if you change one, you have to change the other.

float cooldownModifier = X.XXf;
float overheatModifier = X.XXf;

When editing, !!! ONLY REPLACE THE MARKED Xs !!! Adding or removing anything else may break the script. !!! YOU MUST HAVE THE 'f' ON THE END, EXACTLY AS SHOWN !!!

Some default values:
(cooldown modifier)	(overheat modifier)
0.1875			0.75
0.2			0.8
0.2125			0.85
0.21875			0.875
0.225			0.9

Some tips:
- cooldown modifier = overheat modifier (divided by) 4
- overheat modifier relates directly to ingame RPM, 0 is stopped, 1 is maxed.
- overheating and cooling is curved, you'll overheat fast the higher your RPMs are- like wise, you'll cooldown faster the lower your RPMs are.
- cooldown occures so long as you are not overheating, but is fastest when stopped.
- Getting out of your car will reset grace period/cooldown/overheating but not revert damage done to the engine.
- Overheating should not light your car on fire, however you will not be able to start the car once completely overheated- plus any more engine damage will light it on fire.
- Once your car is overheating it will continue to overheat until the temperature drops enough to start cooling down- Usually once your cars starts smoking it's too late to avoid totaling your car.

=========================================
Credits/Disclosure/Support/Ending Remarks
=========================================
Thank yourself for downloading this script, it can be a lot of fun!
You can thank me if you want- but really this wasn't much

Engine Blow-Out v1.0 by ArpyClarkson
A reconstructed version of 'Destroy Engine v2' by Nevitro

If you have questions/comments/bugs/complaints/presents/donations you can post them on GTA4-mods.com, GTAinside.com, or on my youtube video for this script.

I may release my edit of 'Mechanic Mod' by matt19811 if enough people want it- all I changed is now you only fix the engine, not the whole car. Let me know if ya want it.

Thanks,
ArpyClarkson~